using System;
using Castle.Windsor.Configuration.Interpreters;
namespace FluentIoC.Windsor
{
    public class WindsorContainer : Castle.Windsor.WindsorContainer, IContainer
    {
        public WindsorContainer(string name)
        {
            try
            {
                var interpreter = new XmlInterpreter();

                interpreter.ProcessResource(interpreter.Source, Kernel.ConfigurationStore);

                RunInstaller();
            }
            catch (Exception ex)
            {
                var message = ex.Message;
            }
        }
    }
}